package cn.sh.yhk.acl.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yhk
 * @since 2024-10-04
 */
@TableName("sys_role_permission")
@Data
public class RolePermissionPo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 角色ID
     */
    private Integer rid;

    /**
     * 权限ID
     */
    private Integer pid;

    public RolePermissionPo(Integer roleId, Integer pid) {
        this.rid = roleId;
        this.pid = pid;
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Override
    public String toString() {
        return "SysRolePermission{" +
        "id=" + id +
        ", rid=" + rid +
        ", pid=" + pid +
        "}";
    }
}
